package com.climb.moive.dao;

import com.climb.moive.entity.MovieEvaluation;

import java.sql.SQLException;
import java.util.List;

public interface MovieEvaluationDao {
    /**评论总数*/
    Integer count() throws SQLException;
    /**某会员评论总数*/
    Integer countById(Integer id) throws SQLException;
    /**根据用户的id删除*/
    Integer delet(Integer mid) throws SQLException;

    /*评论的删查*/
    /**删除某评论*/
    Integer deletByEvaluationId(Integer eid)throws SQLException;

    /**查询某评论详情*/
    MovieEvaluation findEvaluationByEid(Integer eid)throws SQLException;

    /**获取评论列表*/
    List<MovieEvaluation> findAllEvaluation()  throws SQLException;

    List<MovieEvaluation> findEvaByMovieid(Integer id) throws SQLException;

    Integer saveEvaluation(MovieEvaluation movieEvaluation) throws SQLException;

    List<MovieEvaluation> findEvaluaByMemberId(Integer id) throws SQLException;
}
